﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Bol.aspx.cs" Inherits="WMS6.Web.TransportManagement.Bol" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Bol</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />

    <script src="../Js/jquery.js" type="text/javascript"></script>

    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script>

    <script src="../Js/util.js" id="js" type="text/javascript"></script>

    <script src="../Js/InitPage.js" type="text/javascript"></script>

    <script src="../Js/Verification.js" type="text/javascript"></script>

    <script src="../Js/calendar.js" type="text/javascript" charset="gb2312"></script>

    <script src="../Js/checkbox.js" type="text/javascript"></script>

    <script type="text/javascript">
        //初始化页面
        window.onload = function() {
            initEditNewPage();
        }

        function confirmMsg(code) {
            if (code == "C001") {
                if (confirm('<%=GetGlobalMsgResource("C001") %>')) {
                    return true;
                }
                else {
                    return false;
                }
            }
            else if (code == "F2110_003") {
                if (confirm('<%=GetGlobalMsgResource("F2110_003") %>')) {
                    return true;
                }
                else {
                    return false;
                }
            }
            else if (code == "F2110_024") {
                if (confirm('<%=GetGlobalMsgResource("F2110_024") %>')) {
                    return true;
                }
                else {
                    return false;
                }
            }

        }

        function showAction() {
            var pos = getElementPos("btnAction");
            document.getElementById("actionDiv").style.top = pos.y + 17;
            document.getElementById("actionDiv").style.left = pos.x;
            document.getElementById("hiddenFlag").value = '1';
        }

        function hiddenDiv() {
            var flag = document.getElementById("hiddenFlag").value
            if (flag == "1") {
                document.getElementById("actionDiv").style.display = "block";
                document.getElementById("hiddenFlag").value = '0';
            }
            else {
                document.getElementById("actionDiv").style.display = "none";
            }
        }
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <div id="div_top">
            <table>
                <tr>
                    <td valign="bottom">
                        <asp:Label ID="lblBol" runat="server" CssClass="label_header" Text="装车单" meta:resourcekey="lblBol"></asp:Label>
                    </td>
                    <td>
                        <asp:Button ID="btnGoBack" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnGoBack%>"
                            Enabled="False" OnClick="btnGoBack_Click" />
                    </td>
                    <td>
                        <asp:Button ID="btnNew" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnNew%>"
                            Enabled="False" AccessKey="n" OnClientClick="newSku();" />
                    </td>
                    <td>
                        <asp:Button ID="btnSave" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnSave%>"
                            Enabled="False" AccessKey="s" OnClick="btnSave_Click" />
                    </td>
                    <td>
                        <asp:Button ID="btnDelete" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnDelete%>"
                            Enabled="False" AccessKey="d" OnClientClick="javascript:if(confirmMsg('C001')) return true; else return false;"
                            OnClick="btnDelete_Click" />
                    </td>
                    <td>
                        <asp:Button ID="btnCopy" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnCopy%>"
                            Enabled="False" AccessKey="c" OnClick="btnCopy_Click" />
                    </td>
                    <td>
                        <input runat="server" id="btnAction" type="button" value="<%$Resources:ButtonResource,btnAction%>"
                            class="button" onclick="showAction(); return false;" />
                    </td>
                </tr>
            </table>
        </div>
        <asp:UpdatePanel ID="up1" runat="server">
            <ContentTemplate>
                <div>
                    <asp:Label ID="lblMsg" runat="server" CssClass="label_message" meta:resourcekey="lblMsg"></asp:Label>
                </div>
                <div id="div_menu">
                    <div style="float: left; width: 8px;">
                        <div class="tabL" id="divL1">
                        </div>
                    </div>
                    <div style="float: left;" class="tabLabelCont tabCur" onclick="setTab('one',1,2)"
                        id="divM1">
                        <asp:Label ID="one1" CssClass="hover" runat="server" meta:resourcekey="one1">装车单</asp:Label></div>
                    <div style="float: left; margin-right: 2px;">
                        <div class="tabR" id="divR1">
                        </div>
                    </div>
                    <div style="float: left; width: 8px;">
                        <div class="tabL_1" id="divL2">
                        </div>
                    </div>
                    <div style="float: left;" class="tabLabelCont tabCur_1" onclick="setTab('one',2,2)"
                        id="divM2">
                        <asp:Label ID="one2" CssClass="navigationlabel" runat="server" meta:resourcekey="one2">自定义字段</asp:Label></div>
                    <div style="float: left; margin-right: 2px;">
                        <div class="tabR_1" id="divR2">
                        </div>
                    </div>
                </div>
                <div id="div_content">
                    <div id="con_one_1" style="display: block;">
                        <table width="720px" style="display: block; margin-left: 10px; margin-top: 10px;">
                            <tr>
                                <td width="180">
                                    <asp:Label ID="lblBolID" runat="server" CssClass="label" Text="装车单号" meta:resourcekey="lblBolID"></asp:Label><span
                                        class="must_input">*</span>
                                </td>
                                <td width="180">
                                    <asp:Label ID="lblEquipmentID" runat="server" CssClass="label" Text="车辆" meta:resourcekey="lblEquipmentID"></asp:Label><span
                                        class="must_input">*</span>
                                </td>
                                <td width="180">
                                    <asp:Label ID="lblStatus" runat="server" CssClass="label" Text="状态" meta:resourcekey="lblStatus"></asp:Label>
                                </td>
                                <td width="180">
                                    <asp:Label ID="lblDepartDate" runat="server" CssClass="label" Text="发车时间" meta:resourcekey="lblDepartDate"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:TextBox ID="txtBolID" runat="server" CssClass="textbox" meta:resourcekey="txtBolID"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtEquipmentID" runat="server" CssClass="textbox" meta:resourcekey="txtEquipmentID"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:DropDownList ID="ddlStatus" runat="server" CssClass="mediumselectbox" meta:resourcekey="ddlStatus">
                                    </asp:DropDownList>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtDepartDate" runat="server" CssClass="textbox" meta:resourcekey="txtDepartDate"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="lblQty" runat="server" CssClass="label" Text="总数量" meta:resourcekey="lblQty"></asp:Label>
                                </td>
                                <td>
                                    <asp:Label ID="lblGrossWeight" runat="server" CssClass="label" Text="总毛重" meta:resourcekey="lblGrossWeight"></asp:Label>
                                </td>
                                <td>
                                    <asp:Label ID="lblNetWeight" runat="server" CssClass="label" Text="总净重" meta:resourcekey="lblNetWeight"></asp:Label>
                                </td>
                                <td>
                                    <asp:Label ID="lblCube" runat="server" CssClass="label" Text="总体积" meta:resourcekey="lblCube"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:TextBox ID="txtQty" runat="server" CssClass="textbox" meta:resourcekey="txtQty"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtGrossWeight" runat="server" CssClass="textbox" meta:resourcekey="txtGrossWeight"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtNetWeight" runat="server" CssClass="textbox" meta:resourcekey="txtNetWeight"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtCube" runat="server" CssClass="textbox" meta:resourcekey="txtCube"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="lblFreightSelf" runat="server" CssClass="label" Text="自付运费" meta:resourcekey="lblFreightSelf"></asp:Label>
                                </td>
                                <td>
                                    <asp:Label ID="lblFreightDealer" runat="server" CssClass="label" Text="经销商运费" meta:resourcekey="lblFreightDealer"></asp:Label>
                                </td>
                                <td>
                                    &nbsp;
                                </td>
                                <td>
                                    &nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:TextBox ID="txtFreightSelf" runat="server" CssClass="textbox" meta:resourcekey="txtFreightSelf"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtFreightDealer" runat="server" CssClass="textbox" meta:resourcekey="txtFreightDealer"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:CheckBox ID="cbxPaid" runat="server" CssClass="checkbox" Text="已付款" meta:resourcekey="cbxPaid" />
                                </td>
                                <td>
                                    &nbsp;
                                </td>
                            </tr>
                            <tr style="height: 10px;">
                                <td width="180">
                                </td>
                                <td width="180">
                                </td>
                                <td width="180">
                                </td>
                                <td width="180">
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div id="con_one_2" style="display: none;">
                        <table width="720px" style="display: block; margin-left: 10px; margin-top: 10px;">
                            <tr>
                                <td width="180px">
                                    <asp:Label ID="lblUdf1" runat="server" CssClass="label" Text="自定义字段01" meta:resourcekey="lblUdf1"></asp:Label>
                                </td>
                                <td width="180px">
                                    <asp:Label ID="lblUdf6" runat="server" CssClass="label" Text="自定义字段06" meta:resourcekey="lblUdf6"></asp:Label>
                                </td>
                                <td width="180px">
                                    <asp:Label ID="lblCreatedBy" runat="server" CssClass="label" Text="制单人" meta:resourcekey="lblCreatedBy"></asp:Label>
                                </td>
                                <td width="180px">
                                    &nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:TextBox ID="txtUdf1" runat="server" CssClass="textbox" meta:resourcekey="txtUdf1"></asp:TextBox>
                                </td>
                                <td width="180px">
                                    <asp:TextBox ID="txtUdf6" runat="server" CssClass="textbox" meta:resourcekey="txtUdf6"></asp:TextBox>
                                </td>
                                <td width="180px">
                                    <asp:TextBox ID="txtCreatedBy" runat="server" Enabled="False" CssClass="textbox"
                                        meta:resourcekey="txtCreatedBy"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:Label ID="lblUdf2" runat="server" CssClass="label" Text="自定义字段02" meta:resourcekey="lblUdf2"></asp:Label>
                                </td>
                                <td width="180px">
                                    <asp:Label ID="lblUdf7" runat="server" CssClass="label" Text="自定义字段07" meta:resourcekey="lblUdf7"></asp:Label>
                                </td>
                                <td width="180px">
                                    <asp:Label ID="lblCreatedDate" runat="server" CssClass="label" Text="制单日期" meta:resourcekey="lblCreatedDate"></asp:Label>
                                </td>
                                <td>
                                    &nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:TextBox ID="txtUdf2" runat="server" CssClass="textbox" meta:resourcekey="txtUdf2"></asp:TextBox>
                                </td>
                                <td width="180px">
                                    <asp:TextBox ID="txtUdf7" runat="server" CssClass="textbox" meta:resourcekey="txtUdf7"></asp:TextBox>
                                </td>
                                <td width="180px">
                                    <asp:TextBox ID="txtCreatedDate" runat="server" Enabled="False" CssClass="textbox"
                                        meta:resourcekey="txtCreatedDate"></asp:TextBox>
                                </td>
                                <td>
                                    &nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:Label ID="lblUdf3" runat="server" CssClass="label" Text="自定义字段03" meta:resourcekey="lblUdf3"></asp:Label>
                                </td>
                                <td width="180px">
                                    <asp:Label ID="lblUdf8" runat="server" CssClass="label" Text="自定义字段08" meta:resourcekey="lblUdf8"></asp:Label>
                                </td>
                                <td>
                                    <asp:Label ID="lblRemark" runat="server" CssClass="label" Text="备注" meta:resourcekey="lblRemark"></asp:Label>
                                </td>
                                <td>
                                    &nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:TextBox ID="txtUdf3" runat="server" CssClass="textbox" meta:resourcekey="txtUdf3"></asp:TextBox>
                                </td>
                                <td width="180px">
                                    <asp:TextBox ID="txtUdf8" runat="server" CssClass="textbox" meta:resourcekey="txtUdf8"></asp:TextBox>
                                </td>
                                <td width="360px" colspan="2" rowspan="3">
                                    <asp:TextBox ID="txtRemark" runat="server" CssClass="largetextarea" TextMode="MultiLine"
                                        meta:resourcekey="txtRemark"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:Label ID="lblUdf04" runat="server" CssClass="label" Text="自定义字段04" meta:resourcekey="lblUdf04"></asp:Label>
                                </td>
                                <td width="180px">
                                    <asp:Label ID="lblUdf09" runat="server" CssClass="label" Text="自定义字段09" meta:resourcekey="lblUdf09"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:TextBox ID="txtUdf4" runat="server" CssClass="textbox" meta:resourcekey="txtUdf4"></asp:TextBox>
                                </td>
                                <td width="180px">
                                    <asp:TextBox ID="txtUdf9" runat="server" CssClass="textbox" meta:resourcekey="txtUdf9"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:Label ID="lblUdf5" runat="server" CssClass="label" Text="自定义字段05" meta:resourcekey="lblUdf5"></asp:Label>
                                </td>
                                <td width="180px">
                                    <asp:Label ID="lblUdf10" runat="server" CssClass="label" Text="自定义字段10" meta:resourcekey="lblUdf10"></asp:Label>
                                </td>
                                <td width="180px">
                                    &nbsp;
                                </td>
                                <td width="180px">
                                    &nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td width="180px">
                                    <asp:TextBox ID="txtUdf5" runat="server" CssClass="textbox" meta:resourcekey="txtUdf5"></asp:TextBox>
                                </td>
                                <td width="180px">
                                    <asp:TextBox ID="txtUdf10" runat="server" CssClass="textbox" meta:resourcekey="txtUdf10"></asp:TextBox>
                                </td>
                                <td width="180px">
                                    &nbsp;
                                </td>
                                <td width="180px">
                                    &nbsp;
                                </td>
                            </tr>
                            <tr style="height: 10px;">
                                <td colspan="4">
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div id="actionDiv" style="background-color: #FFFFFF; position: absolute; display: none;
                    border: none 0 black">
                    <table width="105" border="0" cellspacing="0" cellpadding="0" id="divcontent_menu">
                        <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                            <td class="line" id="tdlnkbtnSaveFreight" runat="server" visible="True">
                                <asp:LinkButton ID="lnkbtnSaveFreight" runat="server" Text="更新运费" OnClick="lnkbtnSaveFreight_Click"
                                    meta:resourcekey="lnkbtnSaveFreight"></asp:LinkButton>
                            </td>
                        </tr>
                        <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                            <td class="line" id="tdlnkbtnPay" runat="server" visible="True">
                                <asp:LinkButton ID="lnkbtnPay" runat="server" Text="付款" OnClick="lnkbtnPay_Click"
                                    meta:resourcekey="lnkbtnPay"></asp:LinkButton>
                            </td>
                        </tr>
                        <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                            <td class="line" id="tdlnkbtnCancelPay" runat="server" visible="True">
                                <asp:LinkButton ID="lnkbtnCancelPay" runat="server" Text="取消付款" OnClick="lnkbtnCancelPay_Click"
                                    meta:resourcekey="lnkbtnCancelPay"></asp:LinkButton>
                            </td>
                        </tr>
                    </table>
                </div>
                <input type="hidden" id="hiddenFlag" runat="server" />
                <input type="hidden" id="hdnBolID" runat="server" />
            </ContentTemplate>
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="btnNew" EventName="Click" />
                <asp:AsyncPostBackTrigger ControlID="btnSave" EventName="Click" />
                <asp:AsyncPostBackTrigger ControlID="btnCopy" EventName="Click" />
            </Triggers>
        </asp:UpdatePanel>
    </div>
    <input type="hidden" id="hdnFrom" runat="server" />
    <input type="hidden" id="hdnFlag" runat="server" value="0" />
    <input type="hidden" id="hdnDataFormat" runat="server" />
    <input type="hidden" id="hdncalendarFlag" runat="server" />
    </form>
</body>
</html>
<script language="javascript" type="text/javascript" event="onclick" for="document">
		<!--
			hiddenDiv();
		//-->
</script>
